package qmsz.api.service.impl;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import qmsz.api.dao.QMCardDAO;
import qmsz.api.domain.QMCard;
import qmsz.api.service.QMCardService;

@Service
public class QMCardServiceImpl implements QMCardService {
	
	private static final Logger logger = Logger.getLogger(QMCardServiceImpl.class);

	@Autowired
	private QMCardDAO qmcardDAO;
	
	@Override
	public QMCard findCardByCardNo(String cardNo) {
		QMCard value = null;
		try {
			value = qmcardDAO.findCardByCardNo(cardNo);
		} catch (Exception e) {
			logger.error("query error", e);
			value = null;
		}
		return value;
	}
}
